<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"	              
      xmlns:t="http://myfaces.apache.org/tomahawk">
      
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>User Ticket's Details</title>
	
	<link rel="stylesheet" type="text/css" href="style/detailsUser.css" />
	
</head>

<body>
       <f:view>
       <t:inputHidden value="#{user.isSignedAsUser}" />
           <h:form>
           
           <p class="right"><t:commandLink value="#{messages.signOutButtonTag}" action="#{user.signOut}"></t:commandLink></p>
		   <p class="right"><t:commandLink value="#{messages.goBackButtonTag}" action="goBackDetail"></t:commandLink></p>
           
           <h1>#{messages.ticketDetailsTitle}</h1>
           
        <center>
        
        <hr />
      			
  		<t:panelGroup >
			<t:panelGrid columns="2">
	  	
	  	<t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketNr}"></t:outputText>			
	  	<t:outputText styleClass="detailClassCenter" value="#{detailsUserBean.ticketDO.ticketId}"></t:outputText>
        <t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketCreationDate}"></t:outputText>			
	  	<t:outputText styleClass="detailClassCenter" value="#{detailsUserBean.ticketDO.creationDate}"></t:outputText>
	  	<t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketInterval}"></t:outputText>			
	  	<t:outputText styleClass="detailClassCenter" value="#{detailsUserBean.startTimeString} - #{detailsUserBean.endTimeString}"></t:outputText>
	  	<t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketStatus}"></t:outputText>			
	  	<t:outputText styleClass="detailClassCenter" value="#{detailsUserBean.ticketDO.statusString}" ></t:outputText>
	  	
	  	<t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketResponseDate}" style="#{viewTicketsUserBean.responseDateCase}"></t:outputText>			
	  	<t:outputText styleClass="detailClassCenter" value="#{detailsUserBean.ticketDO.approvalDate}" style="#{viewTicketsUserBean.responseDateCase}"></t:outputText>
	  	
	  	<t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketFeedback}" style="#{viewTicketsUserBean.feedbackCase}"></t:outputText>			
	  	<t:outputText styleClass="detailClassCenter" value="#{detailsUserBean.ticketDO.rejected}" style="#{viewTicketsUserBean.feedbackCase}"></t:outputText>
	  	<t:outputText styleClass="detailClassLeft" value="#{messages.detailTicketDescription}"></t:outputText>
	  	
	  	<t:inputTextarea id="idArea" value="#{detailsUserBean.ticketDO.description}" rows="6" binding="#{detailsUserBean.updatedDescription}" disabled="#{viewTicketsUserBean.isNotUpdate}"/>
	  	
	  	<t:outputText value=""></t:outputText>
	  	<t:outputText value=""></t:outputText>
	  	
	  	<p align="right"><t:commandButton value="#{messages.saveButtonTag}" action="#{detailsUserBean.saveTicket}" style="#{viewTicketsUserBean.saveCase}"/></p>
	  	<p align="right"><t:commandButton value="#{messages.reSendButtonTag}" action="#{detailsUserBean.updateTicket}" disabled="#{viewTicketsUserBean.isNotUpdate}"/></p>
	  	
	  	<h:messages style="color:red;"/>
	  	
		</t:panelGrid>
      </t:panelGroup> 			
      
      	  
                   
          </center>
          </h:form>
          </f:view>
</body>
       
</html>